<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>文档浏览器</title>
</head>
<body>
<%
			//-------- SOAOFFICE 服务器端编程开始 ------------------------ //
			SOAOfficeX.SOAOfficeCtrl SOACtrl = new SOAOfficeX.SOAOfficeCtrl(pageContext);

			// 设置SOAOFFICE中间件服务页面
			SOACtrl.ServerURL = "../../soalet/soaserv.do";

			// 设置界面样式
			SOACtrl.MainStyle = 2;
			SOACtrl.Caption = "您可以修改这里的文字，正式版本的控件不会出现科翰软件的关于对话框";
			SOACtrl.BorderStyle = 0;
			SOACtrl.Titlebar = true;
			//SOACtrl.TitlebarColor = Color.decode("#FF0000");
			//SOACtrl.TitlebarTextColor = Color.decode("#FFFF00");
			SOACtrl.Menubar = true;
			SOACtrl.Toolbars = true;

			//设置保存文档的服务器页面
			
			String pid = "Excel.Sheet";			
			String date = request.getParameter("date");
			String regenate = request.getParameter("regenate");
			SOACtrl.SaveDocURL = "arm-daliy-product-reporter!savecollate?bean.createDate="+date;
			String openurl = "arm-daliy-product-reporter!collate?bean.createDate="+date+"&regenate="+regenate;
		
			//String openurl="../../attachment/ext/product.xls";
			//out.println(openurl);
			// 打开文档			
			SOACtrl.webOpen(openurl, 0, "屈甲康", pid);
			// -------- SOAOFFICE 服务器端编程结束 ------------------------ //
%>
<SCRIPT language="JavaScript" event="OnDocumentOpened(str, obj)"
	for="SOAOfficeCtrl">
			bDocOpen = true;
		</SCRIPT>
<SCRIPT language="JavaScript" event="OnDocumentClosed()"
	for="SOAOfficeCtrl">
			bDocOpen = false;
		</SCRIPT>
<%@ include file="../../commons/soaobject.jsp" %>
</body>
</html>
